package com.gitee.hermer.engine.jars.app.sdk.configuration;

import javax.sql.DataSource;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.gitee.hermer.boot.jee.commons.log.UtilsContext;
import com.gitee.hermer.engine.jars.core.autoconfigure.annotate.ConditionalOnBean;
import com.gitee.hermer.engine.jars.core.autoconfigure.annotate.ConditionalOnEngineApplication;

@Configuration
//@Conditional({EngineSpanCondition.class,EngineDataSourceSpanCondition.class})
@ConditionalOnEngineApplication
@ConditionalOnBean(DataSource.class)
@EnableTransactionManagement
public class EngineAppTranManagementAutoConfiguration extends UtilsContext implements Ordered{

	@Override
	public int getOrder() {
		return HIGHEST_PRECEDENCE+1000;
	}


}
